home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / netinfo / ni_prot.h < prev    next >
C/C++ Source or Header  |  1995-02-04  |  10KB  |  495 lines

  1. /*
  2.  * Output of the RPC protocol compiler: DO NOT EDIT
  3.  * Copyright (C) 1989 by NeXT, Inc.
  4.  */
  5. #define NI_NAME_MAXLEN 65535
  6. #define NI_NAMELIST_MAXLEN 65535
  7. #define NI_PROPLIST_MAXLEN 65535
  8. #define NI_IDLIST_MAXLEN 1048576
  9. typedef unsigned long ni_index;
  10.  
  11. struct ni_id {
  12.     u_long nii_object;
  13.     u_long nii_instance;
  14. };
  15. typedef struct ni_id ni_id;
  16. bool_t xdr_ni_id();
  17.  
  18.  
  19. typedef char *ni_name;
  20. bool_t xdr_ni_name();
  21.  
  22.  
  23. typedef struct {
  24.     u_int ni_namelist_len;
  25.     ni_name *ni_namelist_val;
  26. } ni_namelist;
  27. bool_t xdr_ni_namelist();
  28.  
  29.  
  30. struct ni_property {
  31.     ni_name nip_name;
  32.     ni_namelist nip_val;
  33. };
  34. typedef struct ni_property ni_property;
  35. bool_t xdr_ni_property();
  36.  
  37.  
  38. typedef struct {
  39.     u_int ni_proplist_len;
  40.     ni_property *ni_proplist_val;
  41. } ni_proplist;
  42. bool_t xdr_ni_proplist();
  43.  
  44.  
  45. typedef struct {
  46.     u_int ni_idlist_len;
  47.     u_long *ni_idlist_val;
  48. } ni_idlist;
  49. bool_t xdr_ni_idlist();
  50.  
  51.  
  52. struct ni_object {
  53.     ni_id nio_id;
  54.     ni_proplist nio_props;
  55.     u_long nio_parent;
  56.     ni_idlist nio_children;
  57. };
  58. typedef struct ni_object ni_object;
  59. bool_t xdr_ni_object();
  60.  
  61.  
  62. enum ni_status {
  63.     NI_OK = 0,
  64.     NI_BADID = 1,
  65.     NI_STALE = 2,
  66.     NI_NOSPACE = 3,
  67.     NI_PERM = 4,
  68.     NI_NODIR = 5,
  69.     NI_NOPROP = 6,
  70.     NI_NONAME = 7,
  71.     NI_NOTEMPTY = 8,
  72.     NI_UNRELATED = 9,
  73.     NI_SERIAL = 10,
  74.     NI_NETROOT = 11,
  75.     NI_NORESPONSE = 12,
  76.     NI_RDONLY = 13,
  77.     NI_SYSTEMERR = 14,
  78.     NI_ALIVE = 15,
  79.     NI_NOTMASTER = 16,
  80.     NI_CANTFINDADDRESS = 17,
  81.     NI_DUPTAG = 18,
  82.     NI_NOTAG = 19,
  83.     NI_AUTHERROR = 20,
  84.     NI_NOUSER = 21,
  85.     NI_MASTERBUSY = 22,
  86.     NI_FAILED = 9999,
  87. };
  88. typedef enum ni_status ni_status;
  89. bool_t xdr_ni_status();
  90.  
  91.  
  92. struct ni_id_res {
  93.     ni_status status;
  94.     union {
  95.         ni_id id;
  96.     } ni_id_res_u;
  97. };
  98. typedef struct ni_id_res ni_id_res;
  99. bool_t xdr_ni_id_res();
  100.  
  101.  
  102. struct ni_parent_stuff {
  103.     u_long object_id;
  104.     ni_id self_id;
  105. };
  106. typedef struct ni_parent_stuff ni_parent_stuff;
  107. bool_t xdr_ni_parent_stuff();
  108.  
  109.  
  110. struct ni_parent_res {
  111.     ni_status status;
  112.     union {
  113.         struct ni_parent_stuff stuff;
  114.     } ni_parent_res_u;
  115. };
  116. typedef struct ni_parent_res ni_parent_res;
  117. bool_t xdr_ni_parent_res();
  118.  
  119.  
  120. struct ni_children_stuff {
  121.     ni_idlist children;
  122.     ni_id self_id;
  123. };
  124. typedef struct ni_children_stuff ni_children_stuff;
  125. bool_t xdr_ni_children_stuff();
  126.  
  127.  
  128. struct ni_children_res {
  129.     ni_status status;
  130.     union {
  131.         ni_children_stuff stuff;
  132.     } ni_children_res_u;
  133. };
  134. typedef struct ni_children_res ni_children_res;
  135. bool_t xdr_ni_children_res();
  136.  
  137.  
  138. struct ni_entry {
  139.     u_long id;
  140.     ni_namelist *names;
  141. };
  142. typedef struct ni_entry ni_entry;
  143. bool_t xdr_ni_entry();
  144.  
  145.  
  146. typedef struct {
  147.     u_int ni_entrylist_len;
  148.     ni_entry *ni_entrylist_val;
  149. } ni_entrylist;
  150. bool_t xdr_ni_entrylist();
  151.  
  152.  
  153. struct ni_list_stuff {
  154.     ni_entrylist entries;
  155.     ni_id self_id;
  156. };
  157. typedef struct ni_list_stuff ni_list_stuff;
  158. bool_t xdr_ni_list_stuff();
  159.  
  160.  
  161. struct ni_list_res {
  162.     ni_status status;
  163.     union {
  164.         ni_list_stuff stuff;
  165.     } ni_list_res_u;
  166. };
  167. typedef struct ni_list_res ni_list_res;
  168. bool_t xdr_ni_list_res();
  169.  
  170.  
  171. struct ni_proplist_stuff {
  172.     ni_id id;
  173.     ni_proplist props;
  174. };
  175. typedef struct ni_proplist_stuff ni_proplist_stuff;
  176. bool_t xdr_ni_proplist_stuff();
  177.  
  178.  
  179. struct ni_create_args {
  180.     ni_id id;
  181.     ni_proplist props;
  182.     u_long where;
  183.     ni_id *target_id;
  184. };
  185. typedef struct ni_create_args ni_create_args;
  186. bool_t xdr_ni_create_args();
  187.  
  188.  
  189. struct ni_proplist_res {
  190.     ni_status status;
  191.     union {
  192.         ni_proplist_stuff stuff;
  193.     } ni_proplist_res_u;
  194. };
  195. typedef struct ni_proplist_res ni_proplist_res;
  196. bool_t xdr_ni_proplist_res();
  197.  
  198.  
  199. struct ni_create_stuff {
  200.     ni_id id;
  201.     ni_id self_id;
  202. };
  203. typedef struct ni_create_stuff ni_create_stuff;
  204. bool_t xdr_ni_create_stuff();
  205.  
  206.  
  207. struct ni_create_res {
  208.     ni_status status;
  209.     union {
  210.         ni_create_stuff stuff;
  211.     } ni_create_res_u;
  212. };
  213. typedef struct ni_create_res ni_create_res;
  214. bool_t xdr_ni_create_res();
  215.  
  216.  
  217. struct ni_destroy_args {
  218.     ni_id parent_id;
  219.     ni_id self_id;
  220. };
  221. typedef struct ni_destroy_args ni_destroy_args;
  222. bool_t xdr_ni_destroy_args();
  223.  
  224.  
  225. struct ni_lookup_args {
  226.     ni_id id;
  227.     ni_name key;
  228.     ni_name value;
  229. };
  230. typedef struct ni_lookup_args ni_lookup_args;
  231. bool_t xdr_ni_lookup_args();
  232.  
  233.  
  234. struct ni_lookup_stuff {
  235.     ni_idlist idlist;
  236.     ni_id self_id;
  237. };
  238. typedef struct ni_lookup_stuff ni_lookup_stuff;
  239. bool_t xdr_ni_lookup_stuff();
  240.  
  241.  
  242. struct ni_lookup_res {
  243.     ni_status status;
  244.     union {
  245.         ni_lookup_stuff stuff;
  246.     } ni_lookup_res_u;
  247. };
  248. typedef struct ni_lookup_res ni_lookup_res;
  249. bool_t xdr_ni_lookup_res();
  250.  
  251.  
  252. struct ni_name_args {
  253.     ni_id id;
  254.     ni_name name;
  255. };
  256. typedef struct ni_name_args ni_name_args;
  257. bool_t xdr_ni_name_args();
  258.  
  259.  
  260. struct ni_createprop_args {
  261.     ni_id id;
  262.     ni_property prop;
  263.     u_long where;
  264. };
  265. typedef struct ni_createprop_args ni_createprop_args;
  266. bool_t xdr_ni_createprop_args();
  267.  
  268.  
  269. struct ni_writeprop_args {
  270.     ni_id id;
  271.     u_long prop_index;
  272.     ni_namelist values;
  273. };
  274. typedef struct ni_writeprop_args ni_writeprop_args;
  275. bool_t xdr_ni_writeprop_args();
  276.  
  277.  
  278. struct ni_prop_args {
  279.     ni_id id;
  280.     u_long prop_index;
  281. };
  282. typedef struct ni_prop_args ni_prop_args;
  283. bool_t xdr_ni_prop_args();
  284.  
  285.  
  286. struct ni_namelist_stuff {
  287.     ni_namelist values;
  288.     ni_id self_id;
  289. };
  290. typedef struct ni_namelist_stuff ni_namelist_stuff;
  291. bool_t xdr_ni_namelist_stuff();
  292.  
  293.  
  294. struct ni_namelist_res {
  295.     ni_status status;
  296.     union {
  297.         ni_namelist_stuff stuff;
  298.     } ni_namelist_res_u;
  299. };
  300. typedef struct ni_namelist_res ni_namelist_res;
  301. bool_t xdr_ni_namelist_res();
  302.  
  303.  
  304. struct ni_propname_args {
  305.     ni_id id;
  306.     u_long prop_index;
  307.     ni_name name;
  308. };
  309. typedef struct ni_propname_args ni_propname_args;
  310. bool_t xdr_ni_propname_args();
  311.  
  312.  
  313. struct ni_createname_args {
  314.     ni_id id;
  315.     u_long prop_index;
  316.     ni_name name;
  317.     u_long where;
  318. };
  319. typedef struct ni_createname_args ni_createname_args;
  320. bool_t xdr_ni_createname_args();
  321.  
  322.  
  323. struct ni_nameindex_args {
  324.     ni_id id;
  325.     u_long prop_index;
  326.     u_long name_index;
  327. };
  328. typedef struct ni_nameindex_args ni_nameindex_args;
  329. bool_t xdr_ni_nameindex_args();
  330.  
  331.  
  332. struct ni_writename_args {
  333.     ni_id id;
  334.     u_long prop_index;
  335.     u_long name_index;
  336.     ni_name name;
  337. };
  338. typedef struct ni_writename_args ni_writename_args;
  339. bool_t xdr_ni_writename_args();
  340.  
  341.  
  342. struct ni_readname_stuff {
  343.     ni_id id;
  344.     ni_name name;
  345. };
  346. typedef struct ni_readname_stuff ni_readname_stuff;
  347. bool_t xdr_ni_readname_stuff();
  348.  
  349.  
  350. struct ni_readname_res {
  351.     ni_status status;
  352.     union {
  353.         ni_readname_stuff stuff;
  354.     } ni_readname_res_u;
  355. };
  356. typedef struct ni_readname_res ni_readname_res;
  357. bool_t xdr_ni_readname_res();
  358.  
  359.  
  360. struct ni_binding {
  361.     ni_name tag;
  362.     u_int addr;
  363. };
  364. typedef struct ni_binding ni_binding;
  365. bool_t xdr_ni_binding();
  366.  
  367.  
  368. struct ni_rparent_res {
  369.     ni_status status;
  370.     union {
  371.         ni_binding binding;
  372.     } ni_rparent_res_u;
  373. };
  374. typedef struct ni_rparent_res ni_rparent_res;
  375. bool_t xdr_ni_rparent_res();
  376.  
  377.  
  378. typedef struct ni_object_node *ni_object_list;
  379. bool_t xdr_ni_object_list();
  380.  
  381.  
  382. struct ni_object_node {
  383.     ni_object object;
  384.     ni_object_list next;
  385. };
  386. typedef struct ni_object_node ni_object_node;
  387. bool_t xdr_ni_object_node();
  388.  
  389.  
  390. struct ni_readall_stuff {
  391.     u_int checksum;
  392.     u_long highestid;
  393.     ni_object_list list;
  394. };
  395. typedef struct ni_readall_stuff ni_readall_stuff;
  396. bool_t xdr_ni_readall_stuff();
  397.  
  398.  
  399. struct ni_readall_res {
  400.     ni_status status;
  401.     union {
  402.         ni_readall_stuff stuff;
  403.     } ni_readall_res_u;
  404. };
  405. typedef struct ni_readall_res ni_readall_res;
  406. bool_t xdr_ni_readall_res();
  407.  
  408.  
  409. typedef struct {
  410.     u_int ni_proplist_list_len;
  411.     ni_proplist *ni_proplist_list_val;
  412. } ni_proplist_list;
  413. bool_t xdr_ni_proplist_list();
  414.  
  415.  
  416. struct ni_listall_stuff {
  417.     ni_id self_id;
  418.     ni_proplist_list entries;
  419. };
  420. typedef struct ni_listall_stuff ni_listall_stuff;
  421. bool_t xdr_ni_listall_stuff();
  422.  
  423.  
  424. struct ni_listall_res {
  425.     ni_status status;
  426.     union {
  427.         ni_listall_stuff stuff;
  428.     } ni_listall_res_u;
  429. };
  430. typedef struct ni_listall_res ni_listall_res;
  431. bool_t xdr_ni_listall_res();
  432.  
  433.  
  434. #define NI_PROG ((u_long)200100000)
  435. #define NI_VERS ((u_long)2)
  436. #define _NI_PING ((u_long)0)
  437. extern void *_ni_ping_2();
  438. #define _NI_STATISTICS ((u_long)1)
  439. extern ni_proplist *_ni_statistics_2();
  440. #define _NI_ROOT ((u_long)2)
  441. extern ni_id_res *_ni_root_2();
  442. #define _NI_SELF ((u_long)3)
  443. extern ni_id_res *_ni_self_2();
  444. #define _NI_PARENT ((u_long)4)
  445. extern ni_parent_res *_ni_parent_2();
  446. #define _NI_CREATE ((u_long)5)
  447. extern ni_create_res *_ni_create_2();
  448. #define _NI_DESTROY ((u_long)6)
  449. extern ni_id_res *_ni_destroy_2();
  450. #define _NI_READ ((u_long)7)
  451. extern ni_proplist_res *_ni_read_2();
  452. #define _NI_WRITE ((u_long)8)
  453. extern ni_id_res *_ni_write_2();
  454. #define _NI_CHILDREN ((u_long)9)
  455. extern ni_children_res *_ni_children_2();
  456. #define _NI_LOOKUP ((u_long)10)
  457. extern ni_lookup_res *_ni_lookup_2();
  458. #define _NI_LIST ((u_long)11)
  459. extern ni_list_res *_ni_list_2();
  460. #define _NI_CREATEPROP ((u_long)12)
  461. extern ni_id_res *_ni_createprop_2();
  462. #define _NI_DESTROYPROP ((u_long)13)
  463. extern ni_id_res *_ni_destroyprop_2();
  464. #define _NI_READPROP ((u_long)14)
  465. extern ni_namelist_res *_ni_readprop_2();
  466. #define _NI_WRITEPROP ((u_long)15)
  467. extern ni_id_res *_ni_writeprop_2();
  468. #define _NI_RENAMEPROP ((u_long)16)
  469. extern ni_id_res *_ni_renameprop_2();
  470. #define _NI_LISTPROPS ((u_long)17)
  471. extern ni_namelist_res *_ni_listprops_2();
  472. #define _NI_CREATENAME ((u_long)18)
  473. extern ni_id_res *_ni_createname_2();
  474. #define _NI_DESTROYNAME ((u_long)19)
  475. extern ni_id_res *_ni_destroyname_2();
  476. #define _NI_READNAME ((u_long)20)
  477. extern ni_readname_res *_ni_readname_2();
  478. #define _NI_WRITENAME ((u_long)21)
  479. extern ni_id_res *_ni_writename_2();
  480. #define _NI_RPARENT ((u_long)22)
  481. extern ni_rparent_res *_ni_rparent_2();
  482. #define _NI_LISTALL ((u_long)23)
  483. extern ni_listall_res *_ni_listall_2();
  484. #define _NI_BIND ((u_long)24)
  485. extern void *_ni_bind_2();
  486. #define _NI_READALL ((u_long)25)
  487. extern ni_readall_res *_ni_readall_2();
  488. #define _NI_CRASHED ((u_long)26)
  489. extern void *_ni_crashed_2();
  490. #define _NI_RESYNC ((u_long)27)
  491. extern ni_status *_ni_resync_2();
  492. #define _NI_LOOKUPREAD ((u_long)28)
  493. extern ni_proplist_res *_ni_lookupread_2();
  494.  
  495.